<template>
  <div>
    <div v-html="content" class="contestt"></div>
  </div>
</template>

<script>
import axios from "axios";
export default {
  data() {
    return {
      content: ""
    };
  },
  created() {
    this.getQuery();
  },
  methods: {
    getQuery() {
      var _this = this;
      const url = "http://www.shizilaoba.com/lion/invite/query"; //调用自定义的接口
      const data = Object.assign({}, {});
      axios.post(url, data).then(res => {
        console.log(res.data.data.content);
        _this.content = res.data.data.content;
      });
    }
  }
};
</script>

<style scoped lang="stylus" rel="stylesheet/stylus">
@import '~common/stylus/variable';
@import '~common/stylus/mixin';
</style>
<style>
.contestt img {
  width: 100%;
}
</style>